const names = ['abc', 'bac', 'cab']
names.forEach((item: string) => {
  console.log(item.split(''))
})